<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>管理分类</title>
<meta name="search" content="price" />
<meta name="author" content="chunhai.chen(15317227@qq.com)" />

    <meta name="META_MAIN_MENU_ID" content="ADMIN_CATEGORIES" />
    <c:if test="${not empty currentCategory && not empty primaryCategoryTrail}">
        <c:set var="trailLinks" value="">
        </c:set>
        <c:forEach items="${primaryCategoryTrail}" var="v" varStatus="vst">
        	<c:set var="class" value=""/>
        	<c:if test="${v.uid == currentCategory.uid}"><c:set var="class" value="current"/></c:if>			
            <c:set var="tmp" value="<span class='sep'>› </span><a class='${class}' href='/admin/article/categories.htm?puid=${v.uid}'>${v.name}</a>"/>
            <c:set var="trailLinks" value="${trailLinks}${tmp}">
            </c:set>
        </c:forEach>
        <meta name="trailLinks" content="${trailLinks}" />
    </c:if>
</head>

<body>
<div style="padding:20px;">

<table width='100%' id="customerTable" class="yui-grid">
	<thead>
		<tr>
			<th nowrap>分类名称</th>
			<th nowrap>分类编号</th>
			<th nowrap>分类描述</th>
			<th colspan="2" nowrap><A href='/admin/article/category/add.htm'>新增分类</A></th>
		</tr>
	</thead>
	<c:if test="${not empty childCategories}">
		<tbody>
			<c:forEach items="${childCategories}" var="v" varStatus="vst">
				<tr>
					<td width=1 nowrap><a href='/admin/article/list.htm?guid=${v.uid}'><c:out value="${v.name}" default="${v.uid}"></c:out></a></td>
					<td width=1 nowrap>${v.uid }</td>
					<td >${v.shortDesc}</td>
					<td width=1 nowrap>
						<A href='/admin/article/category/edit.htm?uid=${v.uid }'>编辑</A> 
					</td>
					<td width=1 nowrap>
						<A	href='/admin/article/category/delete.htm?uid=${v.uid }'>删除</A> 
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</c:if>
</table>
</div>
</body>

</html>

